import request from '@/plugins/axios'

export function fetchList(query) {
    return request({
        url: '/api/assesstask/page',
        method: 'get',
        params: query
    })
}

export function addObj(obj) {
    return request({
        url: '/api/assesstask',
        method: 'post',
        data: obj
    })
}

export function getObj(id) {
    return request({
        url: '/api/assesstask/' + id,
        method: 'get'
    })
}

export function delObj(id) {
    return request({
        url: '/api/assesstask/' + id,
        method: 'delete'
    })
}

export function putObj(obj) {
    return request({
        url: '/api/assesstask',
        method: 'put',
        data: obj
    })
}
export function selectAll() {
    return request({
        url: '/api/assesstemplate/selectAll',
        method: 'get',
    })
}
export function saveSend(obj) {
    return request({
        url: '/api/assesstask/saveAndSend',
        method: 'put',
        data: obj
    })
}
export function addSaveSend(obj) {
    return request({
        url: '/api/assesstask/addSaveAndSend',
        method: 'post',
        data: obj
    })
}
export function getAllAssessCustomers() {
    return request({
        url: '/api/assesstask/allAssessCustomers',
        method: 'get',
    })
}

